module.exports = (error, req, res, next) => {
  console.error("全局错误捕获：", error);
  res.status(500).json({ message: "Internal server error." });
};
